<!DOCTYPE html>
<html>
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>

            <?php echo $title_for_layout; ?>
        </title>
        <?php
        echo $this->Html->css('cake.generic');
        echo $this->fetch('css');
        echo $this->Html->script('jquery');
        echo $this->Html->script('jqueryUI');
        echo $this->Html->script('dropfile');
        ?>
    </head>
    <body>
        <div id="fb-root"></div>
        <div id="container">
            <div id="header">
                <span><?php echo $this->Html->image("logotest.png", array('fullBase' => TRUE)); ?></span>
                <?php if (AuthComponent::user('id')): ?>
                    <span>Bonjour <?php echo AuthComponent::user('username'); ?></span>
                    <span><?php echo $this->Html->link("Se deconnecter", array('action' => 'deconnexion', 'controller' => 'users', 'membre' => FALSE)); ?></span>
                    <span>::</span>
                    <span><?php echo $this->Html->link("Mon compte", array('action' => 'membre_editer', 'controller' => 'users', 'membre' => TRUE)); ?></span>
                    <span>::</span>
                    <span><?php echo $this->Html->link("Mes photos", array('action' => 'membre_editer', 'controller' => 'photos', 'membre' => TRUE)); ?></span>
                <?php else:; ?>
                    <span><?php echo $this->Html->link("Se connecter", array('action' => 'connexion', 'controller' => 'users')); ?></span>
                    <span>::</span>
                    <span><?php echo $this->Html->link("S'inscrire", array('action' => 'enregistrer', 'controller' => 'users')); ?></span>
                <?php endif; ?>
            </div>
            <div id="content">
                <?php echo $this->fetch('content'); ?>
            </div>
            <div id="footer">
            </div>
        </div>
    </body>
    <?php echo $this->Html->script('facebook') ?>

</html>
